#include <stdio.h>
int main() {
	int m, i, x;
	int a = 2;
	for (i = 1; i <= 4; i++) {
		for (m = 1; m <= 5; m++) {
			printf ("%-8d", a);
			a = 2 * a - 1;
		}
	printf ("\n");
	}
}
